package cpu.footprint.bean;

import org.xutils.http.annotation.HttpResponse;

import java.util.List;

import cpu.footprint.api.JsonRespParser;

/**
 * Created by Administrator on 2017/10/14.
 */
@HttpResponse(parser = JsonRespParser.class)
public class BaseBean<T>  {
    public boolean success;
    public int code=200;
    public String info;
    public T data;
    public List<T> datas;

    @Override
    public String toString() {
        return "BaseBean{" +
                "success=" + success +
                ", code=" + code +
                ", info='" + info +
                '}';
    }
    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public List<T> getDatas() {
        return datas;
    }

    public void setDatas(List<T> datas) {
        this.datas = datas;
    }
}
